package com.transaction.manager;

/**
 * 模拟Connection类，实现事务的开启，提交，回滚和关闭
 * @author Administrator
 *
 */
public class Transaction {
	public Transaction() {
		
	}
	public void startTransaction(){
		System.out.println("start transaction");
	}
	public void commitTransaction(){
		System.out.println("commit transaction");
	}
	public void rollBackTransaction(){
		System.out.println("roll back transaction");
	}
	public void closeTransaction() {
		System.out.println("close transaction");
	}
}
